// router.js
import { createRouter, createWebHistory } from 'vue-router';

// 引入Vue组件
// import HomePage from './components/HomePage.vue';
// import AboutPage from './components/AboutPage.vue';

// 定义路由
const routes = [
  { path: '/', component: () => import('@/views/home.vue') },
  { path: '/about', component: () => import('@/views/about.vue') },
];

// 创建router实例
const router = createRouter({
  history: createWebHistory(),
  routes,
});

export default router;